<template>
	<view class="page">
    <view >
      <img style="height: 250px;width: 100vw; border-radius: 20px;" :src="list.img" alt="">
      <view style="margin-top: 10px;">商品类别：{{ list.className }}</view>
      <view style="margin-top: 10px;">商品名称：{{ list.name }}</view>
      <view style="margin-top: 10px;">商品单价：{{ list.price }}</view>
      <view style="margin-top: 10px;">商品数量:{{ list.count }}</view>
      <view style="margin-top: 10px;margin-bottom: 10px;">商品总价：{{ list.count * list.price}}</view>
      <view style="margin-top: 10px;">收货人：{{ list.ordername }}</view>
      <view style="margin-top: 10px;">收货人电话：{{ list.phone}}</view>
      <view style="margin-top: 10px;">收货人地址:{{ list.address }}</view>
      
     
    </view>
	</view>
</template>

<script>
import {baseUrl} from '@/config'
export default {
	data() {
		return {
      sid:0,
      list:[]
		};
	},
	onShow() {
	this.getList()
	},
  onLoad(Option){
    this.sid = Option.sid  
},
	methods: {
    getList(){
      uni.request({
              url: baseUrl+'/v1/order/shopOrderIdSearch',
              data:{
                sid:this.sid
              },
              success: (res) => {
                this.list = res.data.data[0]
                }
          });
    }
	}
};
</script>

<style lang="scss" scoped>

</style>
